package com.example.web_flux.controller;

import com.example.web_flux.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @author luo
 * @description
 * @since 2022/8/17 14:29
 */
@RestController
@Slf4j
public class InvoiceController {

    @Resource(name="orderService")
    private OrderService orderService;

    @PostConstruct
    public void init() {
        log.info("使用@Resource得到的bean是：{}", orderService);
    }

}
